package com.zg.message.sys;

import com.zg.common.core.exception.BusinessException;
import com.zg.common.core.exception.IException;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/21 16:40
 */

public enum MessageE implements IException {

    ERROR(00001, "消息模块异常"),
    ;

    private Integer code;
    private String msg;

    MessageE(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        String s =Constants.SYS_CODE + String.format("%05d", this.code);
        return  Integer.valueOf(s);
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
